using System.Web;
using NHibernate;

namespace TaskKernel.Domain.Nhibernate.NHibernateLayer
{
    public class SessionProvider : ISessionProvider
    {
        public ISession Current
        {
            get { return HttpContext.Current.Items["CurrentSession"] as ISession; }
            set { HttpContext.Current.Items["CurrentSession"] = value; }
        }

    }
}